package com.itheima.springbootwebtlias.service;

//import com.itheima.springbootwebtlias.anno.LogOperation;
import com.itheima.springbootwebtlias.anno.LogOperation;
import com.itheima.springbootwebtlias.pojo.Dept;
import org.springframework.stereotype.Service;

import java.util.List;

//@Service
public interface DeptService {
    //查询所有部门列表的业务功能方法
    List<Dept> selectAll();

    //根据id删除部门
    @LogOperation
    void removeById(Integer id);

    //添加部门
    void saveDept(Dept dept);

    //根据id查询部门
    Dept findById(int id);

    //修改部门业务功能方法
    void update(Dept dept);
}
